package day1;

public class Demo2 {
    public static void main(String[] args) {
        ClassA classA = new ClassA();
        classA.value = 10;
        classA.method();
        classA.method(20);
    }
}
class ClassA{
    public void method(int value){
        System.out.println(value);
    }
    public void method(){
        System.out.println(value);
    }
    int value;
}
